package net.whg.bigdecimal;

import java.math.BigDecimal;
import java.math.RoundingMode;

public class BigDecimalTest {

    public static void main(String[] args) {
        BigDecimal decimal = new BigDecimal(-0.751);
        System.out.println(decimal.setScale(2, RoundingMode.DOWN));
        System.out.println(decimal.setScale(2, RoundingMode.FLOOR));
    }
}
